package dongshi.daddy.myexternalconfig;

import com.alibaba.dubbo.config.spring.context.annotation.DubboComponentScan;
import com.alibaba.dubbo.config.spring.context.annotation.EnableDubboConfig;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

// Java config
@Configuration
// 开启外部化配置
@EnableDubboConfig
// externalconsumerconfig.externalConsumerConfigInfo.properties
@PropertySource("externalconsumerconfig/externalConsumerConfigInfo.properties")
// 扫描MyExternalConfigConusmerService.class所在的包以及其子包
@DubboComponentScan(basePackageClasses = { MyExternalConfigConusmerService.class })
@ComponentScan(basePackageClasses = { MyExternalConfigConusmerService.class })
public class MyExternalConfigConsumerConfiguration {

}
